package com.ctshk.rpc.order.train.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 填写火车票外挂单信息req
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-16
 */
@Data
@ApiModel(value="TrainManualOrderWithReq对象")
public class TrainManualOrderAppReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车次名称")
    @NotNull(message = "车次名称不能为空")
    private String trainNumberName;

    @ApiModelProperty(value = "上车站名称")
    @NotNull(message = "上车站不能为空")
    private String boardingStationName;

    @ApiModelProperty(value = "下车站点名称")
    @NotNull(message = "下车站点不能为空")
    private String alightingStationName;

    @ApiModelProperty(value = "席位等级名称")
    @NotNull(message = "席位等级不能为空")
    private String seatLevelName;

    @ApiModelProperty(value = "外挂单系统")
    @NotNull(message = "外挂单系统不能为空")
    private Long systemId;

    @ApiModelProperty(value = "票种名称")
    private String ticketTypeName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "出发时间 HH:mm")
    private LocalDateTime effectiveTime;

    @NotNull(message = "购买数量不能为空")
    @ApiModelProperty(value = "购买数量")
    private Integer number;

    @ApiModelProperty(value = "产品类型")
    private Integer productType;

    @ApiModelProperty(value = "来源")
    private Integer source;

    @NotBlank(message = "联系人姓不能为空")
    @ApiModelProperty(value = "联系人姓")
    private String surname;

    @NotBlank(message = "联系人名不能为空")
    @ApiModelProperty(value = "联系人名")
    private String name;

    @ApiModelProperty(value = "联系人姓名")
    private String contactName;

    @NotBlank(message = "联系人手机不能为空")
    @ApiModelProperty(value = "联系人手机")
    private String contactMobile;

    @ApiModelProperty(value = "联系人手机区号id")
    private Long contactMobileAreaCodeId;

    @ApiModelProperty(value = "联系人手机区号")
    private String contactMobileAreaCode;

    @ApiModelProperty(value = "联系人邮箱")
    private String contactEmail;

    @ApiModelProperty(value = "实际存放查询后返回的会员手机号码")
    private String memberId;

    @ApiModelProperty(value = "使用积分")
    private Integer usingPoints;

    @ApiModelProperty(value = "优惠卷id")
    private Long couponId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "性别不能为空，1：男,2:女")
    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "收据抬头")
    private String receiptTitle;

    @ApiModelProperty(value = "分社id")
    private Long officeId;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "服务费")
    private BigDecimal serviceChargePrice;

    @Valid
    @NotEmpty(message = "旅客列表不能为空")
    @ApiModelProperty(value = "旅客列表")
    private List<TrainOrderTouristAppReq> trainOrderTouristReqList;

    @ApiModelProperty(value = "出发日期")
    @NotNull(message = "出发日期不能为空")
    private LocalDate effectiveDate;



}
